OnDeathFunction functions can by set by method setOnDeathFunction and will be called when missile hits target.